An example shown here is a simple function to add up all of the integers in a single dimensioned array.